package first.demo;

import java.util.Scanner;

public class GradePrint {
    public  static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("输入学生的成绩:");
        int score = input.nextInt();
        GradeShow(score);
    }

    public static void GradeShow(int score) {
        if(score<=100 && score>=90)
            System.out.println("优秀!");
        if(score<=89 && score>=80)
            System.out.println("良好!");
        if(score<=79 && score>=70)
            System.out.println("中等!");
        if(score<=69 && score>=60)
            System.out.println("及格!");
        if(score<60)
            System.out.println("不及格!");
    }
}
